#define _CRT_SECURE_NO_WARNINGS

#include "List.h"


void TestList1()
{
	ListNode* head = ListCreate();
	ListNode* n1 = BuyListNode(1);
	ListNode* n2 = BuyListNode(2);
	ListNode* n3 = BuyListNode(3);
	ListNode* n4 = BuyListNode(4);
	ListNode* n5 = BuyListNode(5);

	head->next = n1;
	n1->next = n2;
	n2->next = n3;
	n3->next = n4;
	n4->next = n5;
	n1->prev = head;
	n2->prev = n1;
	n3->prev = n2;
	n4->prev = n3;
	n5->prev = n4;
	
	n5->next = n1;
	n1->prev = n5;
	ListPrint(head);
	return 0;
}
void TestList2()
{
	ListNode* head = ListCreate();
	ListPushBack(head, 1);
	ListPushBack(head, 2);
	ListPushBack(head, 3);
	ListPushBack(head, 4);
	ListPushBack(head, 5);

	ListPrint(head);
}
int main()
{
	TestList2();
	return 0;
}